﻿function showBg() {
    var bh = $("body").height();
    var bw = $("body").width();
    $("#phoneCheckwin").css({
        height: bh,
        width: bw,
        display: "block"
    });
    $("#dialog").show();
}
//关闭灰色 jQuery 遮罩 
function closewin() {
    $("#phoneCheckwin,#dialog").hide();
}

/*$(function () {
    if (zt == "1") {
        showBg();
    }
    else {
        closewin();
    }

});*/

var countdown = 60;
function settime() {
    var btnobj = document.getElementById("BtnSendYZM");

    if (countdown == 0) {
        btnobj.removeAttribute("disabled");
        btnobj.value = "免费获取验证码";
        countdown = 60;
        return;
    } else {
        btnobj.setAttribute("disabled", true);
        btnobj.value = "发送成功,重新发送(" + countdown + ")";
        countdown--;
    }
    setTimeout(function () {
        settime(btnobj)
    }, 1000)
}